package com.zmn.oms.dubbo.interfaces.zmn.third.shunfeng;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.dubbo.dto.zmn.third.shunfeng.ShunfengOrderDataDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author xiewenbing
 * @date:2020/12/14 15:30
 * description: 顺丰安装的H5页面接口，用来查询顺丰安装渠道订单资料，保存等
 */
@Api(value = "顺丰安装H5接口", tags = {"顺丰安装H5接口"})
public interface ShunfengRemoteService {

    /**
     * 获取订单的相关信息
     *
     * @param orderId
     * @param completeImageNumber
     * @param failedImageNumber
     * @return
     */
    @ApiOperation(value = "查询订单资料")
    ResponseDTO<ShunfengOrderDataDRO> getOrderData(Long orderId, Integer completeImageNumber, Integer failedImageNumber);

    /**
     * 同步订单安装异常
     *
     * @param orderId
     * @param failedReason
     * @param imageUrl
     * @return
     */
    @ApiOperation(value = "同步顺丰订单安装异常信息")
    ResponseDTO syncOrderInstallFailed(Long orderId, String failedReason, String imageUrl);

    /**
     * 同步订单安装完成图片的url
     *
     * @param orderId
     * @param imageUrl
     * @return
     */
    @ApiOperation(value = "同步顺丰订单安装完成的图片信息")
    ResponseDTO saveOrderCompleteImageUrl(Long orderId, String imageUrl);
}